package com.ssn.visitor.shop;

public class Cashier implements Visitor{
    @Override
    public void visit(Apple apple) {
        System.out.println("收银员检查苹果 先过称 再计价");
    }

    @Override
    public void visit(Book book) {
        System.out.println("收银员检查书本 无需过称 直接计价");
    }
}
